<?php
namespace app\agent\service;

use app\agent\logic\UserPaydetalisAgentLogic;
use app\agent\servlet\UserPaydetalisAgentServlet;

class UserPaydetalisAgentService extends BaseService
{
	private $userPaydetalisAgent = null;
	
	private $servlet = null;
	
	public function __construct()
	{
		parent::__construct();
		
		$this->userPaydetalisAgent = new UserPaydetalisAgentLogic();

		$this->servlet = new UserPaydetalisAgentServlet();
		
	}
	
	public function getViewPage($request = [])
	{
		$where = $this->servlet->getWhere($request);
		
		$data = $this->userPaydetalisAgent->getPage($where, $request);

		$data = [
		    'data' => $data,
            'status' => $this->userPaydetalisAgent->_map['status'],
		];
		
		return $data;
	}
}